﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Resources;
using System.Reflection;
using System.Globalization;
using System.Threading;

namespace Motesrummet.Web.Helpers
{
    public static class ResourceHelper
    {
        public static string getString(string stringKey)
        {
            // Create a resource manager to retrieve resources.
            //ResourceManager rm = new ResourceManager("Motesrummet.Web.Res.MyResources", Assembly.GetAssembly(typeof(Helpers.ResourceHelper)));

            ResourceManager rm = new ResourceManager("Motesrummet.Web.Resources.Resources", Assembly.GetAssembly(typeof(Helpers.ResourceHelper)));

            return rm.GetString(stringKey);
        }

    }
}
